


if __name__ == "__main__":
    lat_air1=[0xFF,0x06,0x01,0,0,0,0,0xAA]
    lon_air1=[0xFF,0x06,0x02,0,0,0,0,0xAA]

    lat_car2=[0xFF,0x06,0x01,0,0,0,0,0xAA]
    lon_car2=[0xFF,0x06,0x02,0,0,0,0,0xAA]

    #获取飞机的经纬度lat_and_lon_air=[12,23,44,33,180,33,22,11]
    lat_and_lon_air =[12,23,44,33,180,33,22,11]
    print(lat_and_lon_air)
    for i in range(4) :
        lat_air1[i+3] = lat_and_lon_air[i]
        lon_air1[i+3] = lat_and_lon_air[i+4]
    print(lat_air1)
    print(lon_air1)
    #获取小车的经纬度
    lat_and_lon_car = [33,11,22,44,66,77,88,99]
    print(lat_and_lon_car)
    for i in range(4) :
        #获取纬度
        lat_car2[i+3] = lat_and_lon_car[i]
        #获取经度
        lon_car2[i+3] = lat_and_lon_car[i+4]
    print(lat_car2)
    print(lon_car2)